//#ifndef TEMPINTMAP_H
//#define	TEMPINTMAP_H
//
////#include "timestamp.h"
////#include "Basics_vector.h"
////#include "Basics.h"
//
//
//template <class T,class U> class tempintmap
//  {
//public:
//	tempintmap(U inodata)   
//	{
//		nrows=0;
//		ncols=0;   
//		nodata=inodata;
//	}
//	int read_from_file(string root,string name,string suffix,
//		string strtype,double intervall,vector<T> vek_keys,string iddiscret)
//	{
//		tempmap tm(nodata);
//		vector<U> dummyvekt;
//		vector<U> valrowvekt;
//		
//		valrowvekt.resize(vek_keys.size());
//		if (tm.read_from_file(string root,string name,string suffix))
//			return 1;
//		tm.check_for_consistency();
//		tm.order();
//		// clear 
//		this->clear();
//		
//		//just have look on variables wanted and variables available
//		if(vek_keys.size()==0) tm.get_keys(vek_keys);
//		
//		else if(check_for_keys(vek_keys))err::err2("tempintmap::read_from_file: some key was not found in file.");
//		
//		//declaration of val map columns
//		for(row=0;row<vek_keys.size();row++){
//			this->val[vek_keys[row]]=dummyvek;
//		}
//		time_intervall ti(intervall_mode,intervall,numb,tm.get_date(0));
//		do
//		{
//			if(iddiscret=="mean_of_some_intervall"){
//				tm.get_mean_of_intervall(ti,vek_keys,valrowvek);
//			}
//			if(iddiscret=="mean_by_linear_interpolation_complete"){
//				tm.get_mean_by_linear_interpolation_complete(ti,vek_keys_valrowek);
//			}
//		}
//		while(ti.get_start()>tm.get_last_date());
//		//read day version	  -->		mean of all dates within a day
//		//read month version 1 -->		mean of all dates within a month
//		//read year				-->     mean of all dates within a year
//		//read contant			-->     mean of all dates within a constant
//		
//		//read month version 2 -->		linear interpolation complete
//		//read month version 3 -->		linear interpolation incomplete
//		//read month version 3 -->		linear accumulation	complete from start to end
//		//read month version 4 -->		linear accumulation incomplete from start to end
//		//read constant version -->		mean of all values within an intervall
//		//read constant version1 -->	linear interpolation
//		//read constant version2 -->    linear accumulation complete
//		//read constant version3 -->	linear accumulation incomplete
//		
//		 
//		
//	}
//private:
//    vector <timestamp> tstart;
//    vector <timestamp> tend;
//    map <const T,vector< U > > val;
//    int nrows;
//    int ncols;
//    U nodata;
//	int clear()
//	{
//		tstart.clear();
//		tend.clear();
//		val.clear();
//		ncols=0;
//		nrows=0;
//		return 0;
//	}
//};
#endif
    